package com.gylang.user.context.config;

import com.gylang.user.context.util.UserContextUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author gylang
 * data 2020/9/3
 * @version v0.0.1
 */
@Configuration
public class UserHelperConfig {

    @Autowired
    private RedisTemplate<String, Object> redisTemplate;

    @Bean
    public void initUserHelper1() {
        UserContextUtils.setRedisUtils(redisTemplate);
    }
}
